package com.nuonuo.refresh.service.impl;

import com.nuonuo.middleware.drs.client.annotation.DrsValue;
import com.nuonuo.middleware.drs.spring.context.annotation.DrsBeanRefresh;
import com.nuonuo.refresh.service.RefreshByDrsValueService;
import org.springframework.stereotype.Service;

/**
 * @author duan
 * @version 1.0
 * @date 2023/1/16 9:17
 */
@DrsBeanRefresh
@Service
public class RefreshByDrsValueServiceImpl implements RefreshByDrsValueService {

    @DrsValue("${app.code}")
    private String appCode;

    @Override
    public String getAppCode() {
        return this + ", " + appCode;
    }
}
